package ${basePackage}.${moduleName}.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${basePackage}.${moduleName}.dao.${className}Mapper;
import ${basePackage}.${moduleName}.model.${className};
import ${basePackage}.${moduleName}.service.${className}Service;

@Service("${lowerClassName}Service")
public class ${className}ServiceImpl implements ${className}Service{
	
	@Autowired
	private ${className}Mapper ${lowerClassName}Mapper;

	public void delete(String id) {
		${lowerClassName}Mapper.delete(id);		
	}

	public List<${className}> get${className}(String ${primary}) {
		return ${lowerClassName}Mapper.get${className}(${primary});
	}

	public void insert(${className} ${lowerClassName}) {
		 ${lowerClassName}Mapper.insert(${lowerClassName});
	}

	public List<${className}> searchAll() {
		return ${lowerClassName}Mapper.searchAll();
	}

	public List<${className}> search${className}(Map searchMap) {
		return ${lowerClassName}Mapper.search${className}(searchMap);
	}

	public void update(${className} ${className}) {
		${lowerClassName}Mapper.update(${className});
	}

	public ${className}Mapper get${className}Mapper() {
		return ${lowerClassName}Mapper;
	}

	public void set${className}Mapper(${className}Mapper ${className}Mapper) {
		this.${lowerClassName}Mapper = ${className}Mapper;
	}
	
	
	

}
